﻿@{
    Layout = "~/Views/Shared/_LayoutWiki.cshtml";
}

<h2>门店信息相关内容</h2>

<div class="item">
    <h3>根据门店编号获取门店信息</h3>

    <p>请求说明</p>
    <p>http请求方式: get</p>
    <p>http://hub.engnice.com/scrm/store/getdealerbycode</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>code</td>
            <td>是</td>
            <td>门店编号</td>
        </tr>
    </table>

    <p>返回说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>类型</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>data</td>
            <td>json</td>
            <td>门店信息</td>
        </tr>
        <tr>
            <td>data.KeyId</td>
            <td>int</td>
            <td>主建</td>
        </tr>
        <tr>
            <td>data.Usecode</td>
            <td>string</td>
            <td>门店编号</td>
        </tr>
        <tr>
            <td>data.DealerName</td>
            <td>string</td>
            <td>门店名称</td>
        </tr>
        <tr>
            <td>data.DealerAddress</td>
            <td>string</td>
            <td>门店地址</td>
        </tr>
        <tr>
            <td>data.lat</td>
            <td>double</td>
            <td>坐标纬度</td>
        </tr>
        <tr>
            <td>data.lng</td>
            <td>double</td>
            <td>坐标经度</td>
        </tr>
        <tr>
            <td>data.Milk</td>
            <td>bit</td>
            <td>是否经营奶粉</td>
        </tr>
        <tr>
            <td>data.Food</td>
            <td>bit</td>
            <td>是否经营辅食</td>
        </tr>
        <tr>
            <td>data.LineCode</td>
            <td>bit</td>
            <td>线路代码</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>根据导购手机号码获取所在门店</h3>

    <p>请求说明</p>
    <p>http请求方式: get</p>
    <p>http://hub.engnice.com/scrm/store/getdealerbyguidemobile</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>mobile</td>
            <td>是</td>
            <td>手机</td>
        </tr>
    </table>

    <p>返回说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>类型</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>data</td>
            <td>json</td>
            <td>门店信息列表</td>
        </tr>
        <tr>
            <td>data[x].KeyId</td>
            <td>int</td>
            <td>主建</td>
        </tr>
        <tr>
            <td>data[x].Usecode</td>
            <td>string</td>
            <td>门店编号</td>
        </tr>
        <tr>
            <td>data[x].DealerName</td>
            <td>string</td>
            <td>门店名称</td>
        </tr>
        <tr>
            <td>data[x].DealerAddress</td>
            <td>string</td>
            <td>门店地址</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>导购注册</h3>

    <p>请求说明</p>
    <p>http请求方式: post</p>
    <p>http://hub.engnice.com/scrm/store/guideregister</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>mobile</td>
            <td>是</td>
            <td>手机</td>
        </tr>
        <tr>
            <td>name</td>
            <td>是</td>
            <td>姓名</td>
        </tr>
        <tr>
            <td>wxid</td>
            <td>是</td>
            <td>微信</td>
        </tr>
        <tr>
            <td>skeyid</td>
            <td>是</td>
            <td>门店主建</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>导购添加所在门店</h3>

    <p>请求说明</p>
    <p>http请求方式: post</p>
    <p>http://hub.engnice.com/scrm/store/guideaddstore</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>mobile</td>
            <td>是</td>
            <td>手机</td>
        </tr>
        <tr>
            <td>skeyid</td>
            <td>是</td>
            <td>门店主建</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>查看导购是否有效</h3>

    <p>请求说明</p>
    <p>http请求方式: get</p>
    <p>http://hub.engnice.com/scrm/store/guideisok</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>mobile</td>
            <td>是</td>
            <td>手机</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>查看导购门店是否有效</h3>

    <p>请求说明</p>
    <p>http请求方式: get</p>
    <p>http://hub.engnice.com/scrm/store/guidestoreisok</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>mobile</td>
            <td>是</td>
            <td>手机</td>
        </tr>
        <tr>
            <td>usecode</td>
            <td>是</td>
            <td>门店编号</td>
        </tr>
    </table>
</div>